import { debounce } from '@/utils/debound'
(function () {
    function rem() {
        let doucWidth = document.querySelector('html')
        let width = document.documentElement.clientWidth || document.body.clientWidth;
        let baseSize = 100
        let baseWidth = 1920
        let size = width / baseWidth * baseSize
        doucWidth.style.fontSize = size + 'px'
    }
    rem()
    window.addEventListener("resize", debounce(rem, 300))
})();